package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleProduct;
import com.caigou.pojo.ArticleProductData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

//@Mapper
//@Repository("ArticleProductMapper")
public interface ArticleProductMapper {
    int saveArticleProductData(ArticleProduct articleProduct);

    ArticleProductData loadArticleProductData(@Param("articleId") String articleId);

    int updateArticleProductData(ArticleProduct articleProduct);

    int deleteArticleProductByArticleId(@Param("articleId") String articleId);

    ArticleProduct loadArticleProduct(@Param("articleId") String articleId);
}
